<?php

namespace App\Http\Controllers\Admin\Collection;

use App\Services\Collection\BrandService;
use Exception;
use Illuminate\Http\JsonResponse;

class BrandController extends BaseCollectionController
{

    private BrandService $brandService;

    public function __construct()
    {
        parent::__construct();
        $this->brandService = $this->loadService('Collection\BrandService');
    }

    /**
     * 品牌列表
     *
     * @return JsonResponse
     * @throws Exception
     */
    public function listAll(): JsonResponse
    {

        $list = $this->brandService->listAll();
        return outputJsonResult($list);
    }

}
